<!--
* description: 文本按钮通用组件(可置灰)
* author: dxuem
* createdDate: 2020-04-17
-->
<template>
  <section class="linkButton" v-if="curIsShow" :key="fullComponentKey">
    <a
      :style="disabled==='true'?'color:gray !important':''"
      :class="disabled==='true'?'disabledLink-crm':''"
      @click="sendCode1"
      v-if="curIsShowLabel"
    >{{code && code.length > 0 ? code : curLabelName}}</a>
  </section>
</template>
<script>
import { linkButtonMixins } from "@/components/mixins/linkButtonMixins";
export default {
  mixins: [linkButtonMixins],
  props:{
    disabled: { type: String, default: 'false' }
  },
  methods:{
    sendCode1(){
      if(this.disabled=='true'){
        return;
      }
      this.sendCode()
    }
  }
};
</script>
<style>
.app-container .linkButton .disabledLink-crm {
  color: gray;
  pointer-events: none;
  cursor: default;
  filter: alpha(opacity=70); /*IE滤镜，透明度50%*/
  -moz-opacity: 0.7; /*Firefox私有，透明度50%*/
  opacity: 0.7; /*其他，透明度50%*/
}
.el-table .linkButton .disabledLink-crm {
  color: gray;
  pointer-events: none;
  cursor: default;
  filter: alpha(opacity=70); /*IE滤镜，透明度50%*/
  -moz-opacity: 0.7; /*Firefox私有，透明度50%*/
  opacity: 0.7; /*其他，透明度50%*/
}
</style>
